package com.twu.biblioteca.commands;

public class CommandsFactory {

    public static AllCommands createCommands() {
        AllCommands commands;
        ICommand viewBooksCommand= new ViewBooksCommand(1);
        ICommand reserveBooksCommand = new ReserveBooksCommand(2, null);
        ICommand checkMemberDetailCommand = new CheckMemberDetailCommand(3);
        ICommand viewMoviesCommand = new ViewsMoviesCommand(4);
        ICommand loginCommand = new LoginCommand(5, null, null);
        ICommand logoutCommand = new LogoutCommand(6);
        ICommand quitCommand = new QuitCommand(7);
        commands = new AllCommands();
        commands.addCommand(viewBooksCommand);
        commands.addCommand(reserveBooksCommand);
        commands.addCommand(checkMemberDetailCommand);
        commands.addCommand(viewMoviesCommand);
        commands.addCommand(loginCommand);
        commands.addCommand(logoutCommand);
        commands.addCommand(quitCommand);

        return commands;
    }
}
